hook::add message bot:cenzor 10
proc bot:cenzor {from type body} {
set a bot:cenzor
set ifadm [ifadmin $from]
	if {[config::optionenable cenzor]} {
		::debug $a "opt(cenzor)" ON
		if {[msgcheck $body]>0} {
			::debug $a "message" "is not cenzored"
			hook::run cenzor $from $ifadm
		}
	}
}

hook::add cenzor muccenzor
proc muccenzor {from type ifadm} {
	if {$ifadm<4} {
		::debug $a "not admin moder message" KICK
		kick $from
		return
	} else {
		if {$ifadm==6} {return;puts "DO NOTHING /owner"}
		if {$ifadm<6} {
			::debug $a "no censored message by BOTadmin or BOTowner" "do nothing"
			gmsg "$conf" "$serv" "$nick" "Не ругайся!!"
		}
	}
}